/**
 * @Author: 焦质晔
 * @Date: 2019/6/20
 * @Last Modified by: max.jianhua
 * @Last Modified time: 2020-11-20 15:21:28
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';
//  返利池查询

// 查询列表 /ttFiRebate/queryList
export const queryList = (params) => axios.post(`${SERVER.WHOLESALES}/ttFiRebate/queryList`, params)

// 返利池明细 /ttFiRebateSubprojectsItemAccount/queryList
export const queryRebatePoolDetail = (params) => axios.post(`${SERVER.WHOLESALES}/ttFiRebateSubprojectsItemAccount/queryList`, params)

// 返利池预扣明细 /ttFiRebate/queryFrozenList
export const queryFrozenAmountDetail = (params) => axios.get(`${SERVER.WHOLESALES}/ttFiRebate/queryFrozenList`, {
  params
})

// 导出	 /ttFiRebate/export
export const exportExcel = (params) => axios.post(`${SERVER.WHOLESALES}/ttFiRebate/export`, params, {
  responseType: 'blob'
})
export const exportFrostAmountExcel = (params) => axios.post(`${SERVER.WHOLESALES}/ttFiRebate/exportFrostAmountLog`, params, {
  responseType: 'blob'
})
// 返利池预扣明细 /ttFiRebate/queryFrozenList
export const queryFrostLog = (params) => axios.get(`${SERVER.WHOLESALES}/ttFiRebate/queryFrostLog`, {
  params
})
// / 导出
export const exporturl = params => axios.post(`/api/cmscloud.excel/downloadExcel/exportExcel/${params.CODE}`, params);

